package mvv.learn.spring.services.elastic;

import java.util.List;

import mvv.learn.spring.dao.elasticsearch.ElasticsearchDao;
import mvv.learn.spring.dto.elasticsearch.ElsEmployeeDto;
import mvv.learn.spring.dto.response.ResResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Manh Vu
 */
@Service
public class TestElasticsearchService {

	@Autowired
	private ElasticsearchDao elasticsearchDao;

	public ResResponse searchAll() {
		List<ElsEmployeeDto> list = elasticsearchDao.getListElsEmployeeDto();
		return (new ResResponse(0, null, list));
	}

}
